#include <stdio.h>

int main()
{
	double f[327];
	double a,b;
	int n,i;
	printf("Please enter the first two numbers of the fibonacci sequence and the number of terms you want to display: ");
	scanf("%lf%lf%d",&f[0],&f[1],&n);
	a=f[0];
	b=f[1];
	for(i=2;i<n;i++)
	{
		f[i]=a+b;
		a=f[i-1];
		b=f[i];
	}
	for(i=0;i<n;i++)
	printf("%lf ",f[i]);
	return 0;
}
